package cn.tedu.oa_system.pojo.in;

import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @Author MW
 * @Description
 * @CreateDate 2023/3/8
 */
@Data
public class StatusListIn implements Serializable {

    static final long serialVersionUID = 1L;

    private Long statusId;

    private String statusColor;

    private String statusModel;

    private String statusName;

    private Long sortValue;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        StatusListIn that = (StatusListIn) o;
        return Objects.equals(statusId, that.statusId) && Objects.equals(statusColor, that.statusColor) && Objects.equals(statusModel, that.statusModel) && Objects.equals(statusName, that.statusName) && Objects.equals(sortValue, that.sortValue);
    }

    @Override
    public int hashCode() {
        return Objects.hash(statusId, statusColor, statusModel, statusName, sortValue);
    }

    @Override
    public String toString() {
        return "StatusListIn{" +
                "statusId=" + statusId +
                ", statusColor='" + statusColor + '\'' +
                ", statusModel='" + statusModel + '\'' +
                ", statusName='" + statusName + '\'' +
                ", sortValue=" + sortValue +
                '}';
    }
}
